import request from '../utils/request';

export const sysDictPage = query => {
    return request({
        url: '/sysDict/page',
        method: 'get',
        params: query
    });
};

export const saveSysDict = data => {
    return request({
        url: '/sysDict/save',
        method: 'post',
        data: data
    });
};

export const updateSysDict = data => {
    return request({
        url: '/sysDict/update',
        method: 'put',
        data: data
    });
};

export const delSysDict = data => {
    return request({
        url : '/sysDict/delete/' + data,
        method: 'delete'
    });
};